/**
 * 主页js
 */



if(location.href=="http://kjt.jl.gov.cn/" || location.href=="http://kjt.jl.gov.cn/index.html"){
//首页
	$("select[name='select']").attr("title","省政府部门");
	$("select[name='select2']").attr("title","国家部委");
	$("select:eq(2)").attr("title","各省市科技管理部门");
	$("select:eq(3)").attr("title","市（州）科技网站");
	$("select:eq(4)").attr("title","相关科技网站");
 
// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
	jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
	jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
	jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
	jsObj.self = iframeObj;
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

//通过方法赋值																																	// 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取


// 选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $("#tab2_t1 a");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $("#tab2_t2 a");  // 需要修改 这里的tab获取


//判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

	// 当iframe都加载完毕后执行代码 使用setInterval
	_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){	
		
		if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined) 
				&& (_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined) ){
			clearInterval(_EsdDynamicTransformationScript.iframeInterval);
			
			//通过方法赋值   
			_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);  
			_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2); 

				
		// 第一个标签 切换
		_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
			console.log("tab1获取到焦点");
			e = $(this).mouseover();
			$(this).bind("keydown.iframeKeydown_1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("tab1向回切换");
					_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
					$("#c1 a").last().focus();
					return false;
				} else if (e.keyCode == 9) {
					console.log("tab1继续切换到iframe上");
					_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
					$(_EsdDynamicTransformationScript.iframe1.self).focus();
					console.log(document.activeElement);
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.iframeTab1.blur(function () {
			$(this).unbind("keydown.iframeKeydown_1");
		});

		// 第一个标签的第一个链接
		$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
			console.log("第一个iframe的第一条获得焦点");
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("第一个iframe的第一条向上切换");
					$(this).trigger("blur");
					_EsdDynamicTransformationScript.iframeTab1.focus();
					return false;
				} else if (e.keyCode == 9) {
					console.log("第一个iframe的第一条继续切换");
				}
			});
		});
		$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
		});

		// 第一个标签的最后一个链接
		$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
			console.log("第一个iframe的最后一条获得焦点");
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("第一个iframe的最后一条向上切换");
				} else if (e.keyCode == 9) {
					console.log("第一个iframe的最后一条继续切换 到下一个标签");
					 $(this).trigger("blur");
					_EsdDynamicTransformationScript.iframeTab2.focus();
					return false;
				}
			});
		});
		$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
		});

		}
		
	}, 500);

}
		

// 第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
    console.log("tab2获取到焦点");
    e = $(this).mouseover();
    $(this).bind("keydown.iframeKeydown_2", function (e) {
        if (e.shiftKey && e.keyCode == 9) {
			console.log("第二个标签向回切换 到第一个标签的最后一条");
            _EsdDynamicTransformationScript.iframeTab2.trigger("blur");
            _EsdDynamicTransformationScript.iframeTab1.mouseover();
            $(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
            return false;
        } else if (e.keyCode == 9) {
            _EsdDynamicTransformationScript.iframeTab2.trigger("blur");
            $(_EsdDynamicTransformationScript.iframe2.self).focus();
            console.log(document.activeElement);
            return false;
        }
    });

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
    $(this).unbind("keydown.iframeKeydown_2");
});


// 第一部分
	// 三层
	// 各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num1 = $("#c2 a").length-1;
	 _EsdDynamicTransformationScript.num2 = $("#c2 a").length-1;
	 _EsdDynamicTransformationScript.num3 = $("#c3 a").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esd3TagNum1 = $("#t1 a");
	 _EsdDynamicTransformationScript.esd3TagNum2 = $("#t2 a");
	 _EsdDynamicTransformationScript.esd3TagNum3 = $("#t3 a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd3TagNum1Content1 = $("#c1 tbody tr td table:eq(0) tbody tr td:eq(1) a");
	 _EsdDynamicTransformationScript.esd3TagNum2Content1 = $("#c2 tbody tr td table:eq(0) tbody tr td:eq(1) a");
	 _EsdDynamicTransformationScript.esd3TagNum3Content1 = $("#c3 tbody tr td table:eq(0) tbody tr td:eq(1) a");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd3TagNum1ContentN = $("#c1 a:eq("+_EsdDynamicTransformationScript.num1+")");
	 _EsdDynamicTransformationScript.esd3TagNum2ContentN = $("#c2 a:eq("+_EsdDynamicTransformationScript.num2+")");
	 _EsdDynamicTransformationScript.esd3TagNum3ContentN = $("#c3 a:eq("+_EsdDynamicTransformationScript.num3+")");
	
	// 第一块
	_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				$(".focusBox .num li:eq(4) a").click();
				$(".focusBox .pic li:eq(4) .pic_text").focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	// 第二块
	_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
		$(this).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
		$(this).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
		$(this).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e2");
	});
	
	// 第三块
	_EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
		$(this).unbind("keydown.keydown_3");
	});

// 第二部分
	
	// 各个选项名称对应的内容数量
// _EsdDynamicTransformationScript.num6 = $("#d1 .paddingtop1 table").length;
	 _EsdDynamicTransformationScript.num6 = $("#d1 a").length-1;
	 _EsdDynamicTransformationScript.num7 = $("#d2 a").length-1;
	 _EsdDynamicTransformationScript.num8 = $("#d3 a").length-1;
	 _EsdDynamicTransformationScript.num9 = $("#d4 a").length-1;
	 _EsdDynamicTransformationScript.num10 =$("#d5 a").length-1;
	 _EsdDynamicTransformationScript.num11 =$("#d6 a").length-1;
	 _EsdDynamicTransformationScript.num12 =$("#d7 a").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esd7TagNum1 = $("#m1 a");
	 _EsdDynamicTransformationScript.esd7TagNum2 = $("#m2 a");
	 _EsdDynamicTransformationScript.esd7TagNum3 = $("#m3 a");
	 _EsdDynamicTransformationScript.esd7TagNum4 = $("#m4 a");
	 _EsdDynamicTransformationScript.esd7TagNum5 = $("#m5 a");
	 _EsdDynamicTransformationScript.esd7TagNum6 = $("#m6 a");
	 _EsdDynamicTransformationScript.esd7TagNum7 = $("#m7 a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd7TagNum1Content1 = $("#d1 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd7TagNum2Content1 = $("#d2 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd7TagNum3Content1 = $("#d3 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd7TagNum4Content1 = $("#d4 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd7TagNum5Content1 = $("#d5 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd7TagNum6Content1 = $("#d6 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd7TagNum7Content1 = $("#d7 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd7TagNum1ContentN = $("#d1 a:eq("+_EsdDynamicTransformationScript.num6+")");
	 _EsdDynamicTransformationScript.esd7TagNum2ContentN = $("#d2 a:eq("+_EsdDynamicTransformationScript.num7+")");
	 _EsdDynamicTransformationScript.esd7TagNum3ContentN = $("#d3 a:eq("+_EsdDynamicTransformationScript.num8+")");
	 _EsdDynamicTransformationScript.esd7TagNum4ContentN = $("#d4 a:eq("+_EsdDynamicTransformationScript.num9+")");
	 _EsdDynamicTransformationScript.esd7TagNum5ContentN = $("#d5 a:eq("+_EsdDynamicTransformationScript.num10+")");
	 _EsdDynamicTransformationScript.esd7TagNum6ContentN = $("#d6 a:eq("+_EsdDynamicTransformationScript.num11+")");
	 _EsdDynamicTransformationScript.esd7TagNum7ContentN = $("#d7 a:eq("+_EsdDynamicTransformationScript.num12+")");
	
	// 第一块
	_EsdDynamicTransformationScript.esd7TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				console.log("1");
				_EsdDynamicTransformationScript.esd7TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd7TagNum1.blur(function () {
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd7TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd7TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	// 第二块
	_EsdDynamicTransformationScript.esd7TagNum2.focus(function (e) {
		console.log(2);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd7TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd7TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd7TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd7TagNum2Content1.focus(function () {
		$(this).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd7TagNum2Content1.blur(function () {
		$(this).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd7TagNum2ContentN.focus(function () {
		$(this).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum3.focus();
				console.log(2-3);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum2ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e2");
	});
	
	// 第三块
	_EsdDynamicTransformationScript.esd7TagNum3.focus(function (e) {
		console.log(3);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd7TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd7TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd7TagNum3.blur(function () {
		$(this).unbind("keydown.keydown_3");
	});

	_EsdDynamicTransformationScript.esd7TagNum3Content1.focus(function () {
		$(this).bind("keydown.keydown_s3", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum3.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd7TagNum3Content1.blur(function () {
		$(this).unbind("keydown.keydown_s3");
	});

	_EsdDynamicTransformationScript.esd7TagNum3ContentN.focus(function () {
		$(this).bind("keydown.keydown_e3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum3ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e3");
	});
	
	// 第四块
	_EsdDynamicTransformationScript.esd7TagNum4.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd7TagNum3.mouseover();
				_EsdDynamicTransformationScript.esd7TagNum3ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum4Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd7TagNum4.blur(function () {
		$(this).unbind("keydown.keydown_4");
	});

	_EsdDynamicTransformationScript.esd7TagNum4Content1.focus(function () {
		$(this).bind("keydown.keydown_s4", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum4.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd7TagNum4Content1.blur(function () {
		$(this).unbind("keydown.keydown_s4");
	});

	_EsdDynamicTransformationScript.esd7TagNum4ContentN.focus(function () {
		$(this).bind("keydown.keydown_e4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum5.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum4ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e4");
	});
	
	// 第五块
	_EsdDynamicTransformationScript.esd7TagNum5.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd7TagNum4.mouseover();
				_EsdDynamicTransformationScript.esd7TagNum4ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum5Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd7TagNum5.blur(function () {
		$(this).unbind("keydown.keydown_5");
	});

	_EsdDynamicTransformationScript.esd7TagNum5Content1.focus(function () {
		$(this).bind("keydown.keydown_s5", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum5.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd7TagNum5Content1.blur(function () {
		$(this).unbind("keydown.keydown_s5");
	});

	_EsdDynamicTransformationScript.esd7TagNum5ContentN.focus(function () {
		$(this).bind("keydown.keydown_e5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum6.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum5ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e5");
	});
	
	// 第六块
	_EsdDynamicTransformationScript.esd7TagNum6.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd7TagNum5.mouseover();
				_EsdDynamicTransformationScript.esd7TagNum5ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum6Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd7TagNum6.blur(function () {
		$(this).unbind("keydown.keydown_6");
	});

	_EsdDynamicTransformationScript.esd7TagNum6Content1.focus(function () {
		$(this).bind("keydown.keydown_s6", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum6.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd7TagNum6Content1.blur(function () {
		$(this).unbind("keydown.keydown_s6");
	});

	_EsdDynamicTransformationScript.esd7TagNum6ContentN.focus(function () {
		$(this).bind("keydown.keydown_e6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum7.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum6ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e6");
	});
	
	// 第七块
	_EsdDynamicTransformationScript.esd7TagNum7.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_7", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd7TagNum6.mouseover();
				_EsdDynamicTransformationScript.esd7TagNum6ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum7Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd7TagNum7.blur(function () {
		$(this).unbind("keydown.keydown_7");
	});

// 第三部分

	// 各个选项名称对应的内容数量
// _EsdDynamicTransformationScript.num6 = $("#d1 .paddingtop1 table").length;
	 _EsdDynamicTransformationScript.num13 = $("#a1 tbody tr td .paddingtop1 tbody a").length-1;
	 _EsdDynamicTransformationScript.num14 = $("#a2 tbody tr td .paddingtop1 tbody a").length-1;
	 _EsdDynamicTransformationScript.num15 = $("#a3 tbody tr td .paddingtop1 tbody a").length-1;
	 _EsdDynamicTransformationScript.num16 = $("#a4 tbody tr td .paddingtop1 tbody a").length-1;
	 _EsdDynamicTransformationScript.num17 =$("#a5 tbody tr td .paddingtop1 tbody a").length-1;
	 _EsdDynamicTransformationScript.num18 =$("#a6 tbody tr td .paddingtop1 tbody a").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esd6TagNum1 = $("#b1 a");
	 _EsdDynamicTransformationScript.esd6TagNum2 = $("#b2 a");
	 _EsdDynamicTransformationScript.esd6TagNum3 = $("#b3 a");
	 _EsdDynamicTransformationScript.esd6TagNum4 = $("#b4 a");
	 _EsdDynamicTransformationScript.esd6TagNum5 = $("#b5 a");
	 _EsdDynamicTransformationScript.esd6TagNum6 = $("#b6 a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd6TagNum1Content1 = $("#a1 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd6TagNum2Content1 = $("#a2 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd6TagNum3Content1 = $("#a3 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd6TagNum4Content1 = $("#a4 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd6TagNum5Content1 = $("#a5 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	 _EsdDynamicTransformationScript.esd6TagNum6Content1 = $("#a6 tbody tr:eq(0) td .paddingtop1 tbody tr:eq(2) .xuanxiangkalefttd table tbody tr td:eq(0) a");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd6TagNum1ContentN = $("#a1 tbody tr td .paddingtop1 tbody  a:eq("+_EsdDynamicTransformationScript.num13+")");
	 _EsdDynamicTransformationScript.esd6TagNum2ContentN = $("#a2 tbody tr td .paddingtop1 tbody  a:eq("+_EsdDynamicTransformationScript.num14+")");
	 _EsdDynamicTransformationScript.esd6TagNum3ContentN = $("#a3 tbody tr td .paddingtop1 tbody  a:eq("+_EsdDynamicTransformationScript.num15+")");
	 _EsdDynamicTransformationScript.esd6TagNum4ContentN = $("#a4 tbody tr td .paddingtop1 tbody  a:eq("+_EsdDynamicTransformationScript.num16+")");
	 _EsdDynamicTransformationScript.esd6TagNum5ContentN = $("#a5 tbody tr td .paddingtop1 tbody  a:eq("+_EsdDynamicTransformationScript.num17+")");
	 _EsdDynamicTransformationScript.esd6TagNum6ContentN = $("#a6 tbody tr td .paddingtop1 tbody  a:eq("+_EsdDynamicTransformationScript.num18+")");
	
	// 第一块
	_EsdDynamicTransformationScript.esd6TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				console.log("1");
				_EsdDynamicTransformationScript.esd6TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd6TagNum1.blur(function () {
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd6TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	// 第二块
	_EsdDynamicTransformationScript.esd6TagNum2.focus(function (e) {
		console.log(2);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd6TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd6TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd6TagNum2Content1.focus(function () {
		$(this).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd6TagNum2Content1.blur(function () {
		$(this).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd6TagNum2ContentN.focus(function () {
		$(this).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum3.focus();
				console.log(2-3);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum2ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e2");
	});
	
	// 第三块
	_EsdDynamicTransformationScript.esd6TagNum3.focus(function (e) {
		console.log(3);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd6TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd6TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd6TagNum3.blur(function () {
		$(this).unbind("keydown.keydown_3");
	});

	_EsdDynamicTransformationScript.esd6TagNum3Content1.focus(function () {
		$(this).bind("keydown.keydown_s3", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum3.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd6TagNum3Content1.blur(function () {
		$(this).unbind("keydown.keydown_s3");
	});

	_EsdDynamicTransformationScript.esd6TagNum3ContentN.focus(function () {
		$(this).bind("keydown.keydown_e3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum3ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e3");
	});
	
	// 第四块
	_EsdDynamicTransformationScript.esd6TagNum4.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd6TagNum3.mouseover();
				_EsdDynamicTransformationScript.esd6TagNum3ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum4Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd6TagNum4.blur(function () {
		$(this).unbind("keydown.keydown_4");
	});

	_EsdDynamicTransformationScript.esd6TagNum4Content1.focus(function () {
		$(this).bind("keydown.keydown_s4", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum4.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd6TagNum4Content1.blur(function () {
		$(this).unbind("keydown.keydown_s4");
	});

	_EsdDynamicTransformationScript.esd6TagNum4ContentN.focus(function () {
		$(this).bind("keydown.keydown_e4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum5.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum4ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e4");
	});
	
	// 第五块
	_EsdDynamicTransformationScript.esd6TagNum5.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd6TagNum4.mouseover();
				_EsdDynamicTransformationScript.esd6TagNum4ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum5Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd6TagNum5.blur(function () {
		$(this).unbind("keydown.keydown_5");
	});

	_EsdDynamicTransformationScript.esd6TagNum5Content1.focus(function () {
		$(this).bind("keydown.keydown_s5", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum5.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd6TagNum5Content1.blur(function () {
		$(this).unbind("keydown.keydown_s5");
	});

	_EsdDynamicTransformationScript.esd6TagNum5ContentN.focus(function () {
		$(this).bind("keydown.keydown_e5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum6.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum5ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e5");
	});
	
	// 第六块
	_EsdDynamicTransformationScript.esd6TagNum6.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd6TagNum5.mouseover();
				_EsdDynamicTransformationScript.esd6TagNum5ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum6Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd6TagNum6.blur(function () {
		$(this).unbind("keydown.keydown_6");
	});




	
// 首页结束
}






















